package me.zhengjie.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.util.ruoyiexcel.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Description TODO
 * @Author Long
 * @Date 2021/7/16 10:25
 */
@Data
@ApiModel(description = "为考试添加一个监考老师Dto")
public class SaveExamTeacherDto {



    @ApiModelProperty(value = "考场id")
    private Integer examRoomId;

    @ApiModelProperty(value = "教师工号")
    private String jobNumber;

    @ApiModelProperty(value = "姓名")
    private String nameCn;

    @ApiModelProperty(value = "身份证")
    private String idCard;

    @ApiModelProperty(value = "标识")
    private String alias;

    @ApiModelProperty(value = "教师id")
    @NotNull(message = "教师id不可为空")
    private Integer teacherId;

    @ApiModelProperty(value = "部门id")
    private Integer deptId;

    @ApiModelProperty(value = "监考教师类型（0：上报，1：报名）")
    private String type;

    @ApiModelProperty(value = "删除标识（0：未删除，1：已删除）")
    private String delFlag;

    @ApiModelProperty(value = "手机号")
    @Excel(name = "手机号")
    private String phone;

    @ApiModelProperty(value = "老师身份类型（0代表监考老师，1代表考务人员,2代表特殊人员）")
    private String identity = "0";

    @ApiModelProperty(value = "签到状态(0代表未签到，1代表已签到)")
    private String checkinStatus;

    @ApiModelProperty(value = "签到时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date checkinTime;

    @ApiModelProperty("考试id")
    private Integer examId;

    @ApiModelProperty("考试的开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "考试开始时间不可为空")
    private Date startTime;

    @ApiModelProperty("考试的结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "考试结束时间不可为空")
    private Date endTime;

}
